<?php
/**
 * @Author: Marte
 * @Date:   2020-01-20 10:49:38
 * @Last Modified by:   Marte
 * @Last Modified time: 2020-01-20 11:05:57
 */
require '../vendor/autoload.php';
use Mulin\Bean\BeanFactory;

//程序初始化时载入对象到容器当中
$bean=require  'Bean.php';
foreach ($bean as $k=>$v){
    BeanFactory::set($k,$v);
}

$route = BeanFactory::get('Route');
$route->set('test', 'IndexController@test');
echo $route->get('test');